import 'package:ceramics/extensions/ab_widget_extensions.dart';
import 'package:ceramics/pages/main/home/ab_boost_dialog.dart';
import 'package:ceramics/styles/ab_styles.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';

class ABBoostSuccessDialog extends StatelessWidget {
  final ABBoostGift boostGift;
  const ABBoostSuccessDialog({super.key,required this.boostGift});

  @override
  Widget build(BuildContext context) {
    return Dialog(
      backgroundColor: Colors.transparent,
      clipBehavior: Clip.none,
      child: Stack(
        alignment: Alignment.center,
        clipBehavior: Clip.none,
        children: [
          Image.asset('images/ceramics_73.webp',fit: BoxFit.fill,width: double.infinity,height: double.infinity).size(width: double.infinity,height: 170),
          Positioned(
            bottom: 20,
            child: Column(
              mainAxisSize: MainAxisSize.min,
              children: [
                Image.asset(boostGift.image,height: 100),
                const SizedBox(height: 10),
                const Text('Successfully Boosted',style: TextStyle(fontFamily: "RacingSansOne",color: ABStyles.darkBlack,fontSize: 20,fontWeight: FontWeight.bold)),
                const SizedBox(height: 20),
                GestureDetector(
                    onTap: (){
                      Get.back();
                    },
                    child: Image.asset('images/ceramics_2.webp',height: 35))
              ],
            ),
          ),
        ],
      ),
    );
  }
}
